package pack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;


public class sprg27 {
public static void main(String[] args) {

	FirefoxProfile profil=new FirefoxProfile();
profil.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/zip");
WebDriver driver=new FirefoxDriver(profil);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("http://docs.seleniumhq.org/download/");
driver.findElement(By.xpath("//tr[td[text()='Java']]/td[4]/a")).click();



}
	//FirefoxDriver driver=new FirefoxDriver();

}
